 <?php 
	$repository=BO::getCategoryBORepository();
	$id=getFormValue('id');
	$categoryBO = $repository->getCategoryBO($id);
?>
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Category Page : <?php echo $categoryBO->getName(); ?></div>
  <div class="panel-body">
		<p>
		
		</p>	

	  	
		<ul class="nav nav-tabs" role="tablist">
		  <li class="active"><a href="#">General</a></li>
		  <li><a href="dispatch.php?target=category_product-list&id=<?php echo $categoryBO->getID(); ?>">Products</a></li>
		</ul>
		<div class="panel">	
			<div class="panel-body">
				<div class="bs-example">
					<h1>Category : General Information</h1>
					<form class="form-horizontal" action="dispatch.php" method="post">
						<input type="hidden" name="target" value="category-save">
						<input type="hidden" name="id" value="<?php echo $categoryBO->getID(); ?>">
						<div class="form-group">
							<label class="control-label col-xs-3" for="inputEmail">Name:</label>
							<div class="col-xs-9">
								<input type="input" name="name" class="form-control" id="inputName" value="<?php echo $categoryBO->getName(); ?>" placeholder="Name">
							</div>
						</div>
						
						<div class="form-group">
							<label class="control-label col-xs-3" for="inputEmail">SEO ID:</label>
							<div class="col-xs-9">
								<input type="input" name="seoid" class="form-control" value="<?php echo $categoryBO->getSeoID(); ?>" id="inputName" placeholder="SEO ID">
							</div>
						</div>
						

						<div class="form-group">
							<label class="control-label col-xs-3" for="postalAddress">Parent:</label>
							<div class="col-xs-9">
								<input type="input" name="parent" class="form-control" value="<?php echo $categoryBO->getParent()->name;?>" id="inputName" readonly="true">
								<input type="hidden" name="parentid" value="<?php echo $categoryBO->getParent()->id;?>" >
							</div>
						</div>
						
						<br>
						<div class="form-group">
							<div class="col-xs-offset-3 col-xs-9">
								<input type="submit" class="btn btn-primary" value="Submit">
								<input type="reset" class="btn btn-default" value="Reset">
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
		
	</div>
	
</div>	
		  
		  
		  